package com.cwz.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cwz.gulimall.common.utils.PageUtils;
import com.cwz.gulimall.member.entity.MemberEntity;
import com.cwz.gulimall.member.exception.MobileExistException;
import com.cwz.gulimall.member.exception.UserNameExistException;
import com.cwz.gulimall.member.vo.MemberLoginVo;
import com.cwz.gulimall.member.vo.MemberRegisterVo;
import com.cwz.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author shiyi
 * @email 852998448@qq.com
 * @date 2022-11-07 10:19:25
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo vo);

    void checkMobileIfUnique(String mobile) throws MobileExistException;

    void checkUserNameIfUnique(String userName) throws UserNameExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity oauthLogin(SocialUser socialUser);
}

